
let initialState = "王小二"

export default function (state = initialState, action) {
    let { type, payload } = action;
    switch (type) {
        case "CHANGE_USERNAME":
            return payload
        default:
            return state
    }
}